3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A model's picking parts style determines the kinds of objects that are eligible for placement in a hit list during a pick operation. Currently, you can use the picking parts style to limit your attention to certain parts of a mesh. The picking parts style is specified by a value defined using one or more pick parts masks, which are defined by these constants:
typedef enum TQ3PickPartsMasks {
kQ3PickPartsObject = 0,
kQ3PickPartsMaskFace = 1 << 0,
kQ3PickPartsMaskEdge = 1 << 1,
kQ3PickPartsMaskVertex = 1 << 2
} TQ3PickPartsMasks;
The default picking parts style is kQ3PickPartsObject , which indicates that the hit list is to contain only whole objects. You can add in the other masks to select parts of a mesh for picking. For instance, to pick edges and vertices, you would draw a pick parts style using the value:
kQ3PickPartsMaskEdge | kQ3PickPartsMaskVertex
For a description of mesh parts, see the chapter "Geometric Objects." For complete information about picking parts, see the chapter "Pick Objects."
Previous | QD3D Book | Overview | Chapter Contents | Next |